// 2013-9-1下午01:08:13  net.betou.trade.main.manager.ChannelMng.java

package net.betou.trade.main.manager;

import java.util.List;

import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.AgentAndAdmins;
import net.betou.trade.entity.main.Channel;

/**
 * 
 * @author 叶装装
 */
public interface ChannelMng{

	public Channel save( Channel bean, AgentAndAdmins admin, Integer parentId, Integer [ ] userGroup, Integer [ ] smsGroups );
	
	public Channel deleteById( Integer id );
	
	public Channel [ ] deleteByIds( Integer [ ] ids );
	
	public Channel update( Channel bean, Integer [ ] userGroup, Integer parentId, Integer [ ] smsGroups  );
	
	public Channel findById( Integer id );
	
	public Pagination getPage( AgentAndAdmins admin, String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize );
	
	public Channel findMyChannel( Integer id, Integer adminId, boolean system );
	
	public List< Channel > getList( AgentAndAdmins admin );
	
	public List< Integer > getOrientedGroup( Integer groupId, List< Integer > idList );
}
